package com.hz.zbl.service;

import com.hz.zbl.entity.BlogEntity;
import com.hz.zbl.entity.CommentsEntity;

import java.util.List;

public interface BlogService {

    int addBlog(String title, String content, int user_id, boolean is_anonymous);

    BlogEntity viewBlog(int id);

    int deleteBlog(int id);

    int updateBlog(int id, String title, String content);


    List<BlogEntity> allBlogs();

    List<BlogEntity> myBlogs(int author_id);

    int addComments(int blog_id, String username, String content, boolean is_anonymous);
}
